home *** CD-ROM | disk | FTP | other *** search
/ PC & Mediji 1998 February / PCM_9802.iso / programi / director / data.z / Simple Child Object.dir / 00002_Script_StartMovie Handlers < prev    next >
Text File  |  1997-05-10  |  697b  |  35 lines

  1. on prepareMovie
  2.   -- puppet the ball/script sprite channel
  3.   puppetSprite 2, TRUE
  4.   
  5.   -- make the "new" button visible; make the "left"
  6.   -- and "right" buttons invisible
  7.   set the visible of sprite 3 to TRUE
  8.   set the visible of sprite 4 to TRUE
  9.   
  10.   repeat with n = 5 to 8
  11.     set the visible of sprite n to FALSE
  12.   end repeat
  13.   
  14. end 
  15.  
  16.  
  17.  
  18. on createBall
  19.   global ball1
  20.   set ball1 to 0
  21.   set ball1 to new(script "Ball Parent Script")
  22.   set the visible of sprite 3 to FALSE
  23.   set the visible of sprite 4 to FALSE
  24.   
  25.   repeat with n = 5 to 8
  26.     set the visible of sprite n to TRUE
  27.   end repeat
  28. end createBall
  29.  
  30.  
  31.  
  32. on stopMovie
  33.   puppetSprite 2, FALSE
  34. end stopMovie
  35.